package day20180129.designMode.seven_builder;

/**
 * Created by 14394 on 2018/1/29.
 */

//使用builder类中声明的类来编写文档
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void construct(){
        builder.makeTitle("Geeting");
        builder.makeString("从早上到下午");
        builder.makeItems(new String[]{"早上好","下午好"});


        builder.makeString("晚上");
        builder.makeItems(new String[]{"晚上好","晚安","再见"});

        builder.close();
    }
}
